package com.bytedance.framwork.core.monitor;

import java.util.Iterator;
import java.util.LinkedList;

final class b extends Thread {
    private final a a;

    b(a arg1, String arg2) {
        super(arg2);
        this.a = arg1;
    }

    public final void run() {
        Iterator v1_1;
        LinkedList v0_1;
        LinkedList v1;
        try {
            v1 = com.bytedance.framwork.core.monitor.a.a(this.a);
            synchronized (v1) {
                v0_1 = new LinkedList(a.a(this.a));
                a.a(this.a).clear();
            }
            v1_1 = v0_1.iterator();
            while (v1_1.hasNext()) {
                com.bytedance.framwork.core.monitor.a.b((com.bytedance.framwork.core.monitor.a.c) v1_1.next());
            }

            v1 = com.bytedance.framwork.core.monitor.a.b(this.a);
            synchronized (v1) {
                v0_1 = new LinkedList(a.b(this.a));
                com.bytedance.framwork.core.monitor.a.b(this.a).clear();
            }

            v1_1 = v0_1.iterator();
            while (v1_1.hasNext()) {
                com.bytedance.framwork.core.monitor.a.b((com.bytedance.framwork.core.monitor.a.d) v1_1.next());
            }

            v1 = a.c(this.a);
            synchronized (v1) {
                v0_1 = new LinkedList(a.c(this.a));
                a.c(this.a).clear();
            }
            v1_1 = v0_1.iterator();
            while (v1_1.hasNext()) {
                com.bytedance.framwork.core.monitor.a.a((com.bytedance.framwork.core.monitor.a.b) v1_1.next());
            }

            v1 = a.d(this.a);
            synchronized (v1) {
                v0_1 = new LinkedList(a.d(this.a));
                com.bytedance.framwork.core.monitor.a.d(this.a).clear();

            }
            v1_1 = v0_1.iterator();
            while (true) {
                if (!v1_1.hasNext()) {
                    return;
                }
                com.bytedance.framwork.core.monitor.a.b((com.bytedance.framwork.core.monitor.a.a$a) v1_1.next());
            }
        } catch (Throwable v0) {
            return;
        }
    }
}

